package cn.zl.springbootredis.util;

import org.springframework.util.DigestUtils;

/**
 * @Description:
 * @Author: zhanglang
 * @Date: 2020/9/8 9:34
 */
public class Md5Utils {
    public static void main(String[] args) {

    }
    public static String getKeyMd5(String key){
        //利用Spring框架提供的md5工具类
       return DigestUtils.md5DigestAsHex(key.getBytes());
    }
}
